<html><head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
  <#assign base=request.contextPath  />
    <link rel="stylesheet" href="${base}/js/layui/css/layui.css?t=1534970980648" media="all">
    <script type="text/javascript" src="${base}/js/zhang.js"></script>
    <script src="${base}/js/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${base}/js/ztree/jquery-1.4.4.min.js"></script>
    <script src="${base}/js/jquery.min.js"></script>
    <style type="text/css">
        form{
            padding:20px;
        }
        .layui-btn-radius{
            border-radius: 5px;
        }
    </style>
</head>
<body>
<form class="layui-form" action="">
    <div class="layui-form-item">
    <#--<div class="layui-inline">
      <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;门</label>
      <div class="layui-input-inline">
      <select lay-search="" id="door" lay-verify="required" autocomplete="off" class="layui-input isNull">
                                  <option value="优">优</option>
                                  <option value="良">良</option>
                                  <option value="中">中</option>
                                  <option value="差">差</option>
                                  </select>
      </div>
  </div>-->
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;桌面是否消毒</label>
            <div class="layui-input-inline">
                <select name="number" id="desktop" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="优">优</option>
                    <option value="良">良</option>
                    <option value="中">中</option>
                    <option value="差">差</option>
                </select>

            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;操作台是否消毒</label>
            <div class="layui-input-inline">
                <select name="number" id="wash" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="优">优</option>
                    <option value="良">良</option>
                    <option value="中">中</option>
                    <option value="差">差</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;碗筷是否消毒</label>
            <div class="layui-input-inline">
                <select name="number" id="rack" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="优">优</option>
                    <option value="良">良</option>
                    <option value="中">中</option>
                    <option value="差">差</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;冰箱是否消毒</label>
            <div class="layui-input-inline">
                <select name="number" id="refrigerator" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="优">优</option>
                    <option value="良">良</option>
                    <option value="中">中</option>
                    <option value="差">差</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;地面是否消毒</label>
            <div class="layui-input-inline">
                <select name="number" id="floor" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="优">优</option>
                    <option value="良">良</option>
                    <option value="中">中</option>
                    <option value="差">差</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;房间是否消毒除蝇</label>
            <div class="layui-input-inline">
                <select name="number" id="disinfection" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="是">是</option>
                    <option value="否">否</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;房间是否有异味</label>
            <div class="layui-input-inline">
                <select name="number" id="odour" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="是">是</option>
                    <option value="否">否</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;垃圾桶是否消毒</label>
            <div class="layui-input-inline">
                <select name="number" id="garbage" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
                    <option value="优">优</option>
                    <option value="良">良</option>
                    <option value="中">中</option>
                    <option value="差">差</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;卫生等级</label>
            <div class="layui-input-inline">
                <input name="number" id="grade" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
            </div>
        </div>


        <div class="layui-inline">
            <label class="layui-form-label" style="width: 100px;" ><a style="color:red">*</a>&nbsp;清洁负责人</label>
            <div class="layui-input-inline">
                <input name="number" id="cleaner" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label"style="width: 100px;"  ><a style="color:red">*</a>&nbsp;检查负责人</label>
            <div class="layui-input-inline">
                <input name="number" id="inspect" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label"style="width: 100px;" ><a style="color:red">*</a>&nbsp;监督负责人</label>
            <div class="layui-input-inline">
                <input name="number" id="supervise" lay-verify="required" autocomplete="off" class="layui-input isNull" type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block"style="margin-left: 280px;margin-top: 20px;" >
                <button class="layui-btn layui-btn-radius" lay-submit="" type="button" onclick="kitchenhysbmint()" lay-filter=""style="background-color: #0092EF;">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-btn-radius">重置</button>
            </div>
        </div>

    </div>
</form>

<script>
    layui.use(['form','layer'], function(){
        var form = layui.form
                ,layer = layui.layer;

    })
    function kitchenhysbmint(){
        var jsonDate={};
        jsonDate.date= $("#date").val();
        jsonDate.door= $("#door").val();
        jsonDate.garbage= $("#garbage").val();
        jsonDate.refrigerator =$("#refrigerator").val();
        jsonDate.rack =$("#rack").val();
        jsonDate.floor =$("#floor").val();
        jsonDate.wash =$("#wash").val();
        jsonDate.desktop =$("#desktop").val();
        jsonDate.disinfection =$("#disinfection").val();
        jsonDate.odour =$("#odour").val();
        jsonDate.cleaner =$("#cleaner").val();
        jsonDate.inspect =$("#inspect").val();
        jsonDate.supervise =$("#supervise").val();
        jsonDate.grade =$("#grade").val();

        if(!isNull()){
            return;
        }
        $.ajax({
            type:"POST",
            url:"${base}/kitchenhy/addKitchenhy",
            data:{"param":JSON.stringify(jsonDate)},
            success : function(data){
                layer.msg(data);
                setTimeout(function(){
                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                    parent.layer.close(index); //再执行关闭
                },200)
                jsonDate.date= $("#date").val("");
                jsonDate.door= $("#door").val("");
                jsonDate.garbage= $("#garbage").val("");
                jsonDate.refrigerator =$("#refrigerator").val("");
                jsonDate.rack =$("#rack").val("");
                jsonDate.floor =$("#floor").val("");
                jsonDate.wash =$("#wash").val("");
                jsonDate.desktop =$("#desktop").val("");
                jsonDate.disinfection =$("#disinfection").val("");
                jsonDate.odour =$("#odour").val("");
                jsonDate.cleaner =$("#cleaner").val("");
                jsonDate.inspect =$("#inspect").val("");
                jsonDate.supervise =$("#supervise").val("");
                jsonDate.grade =$("#grade").val("");
                var table = parent.layui.table;
                //表刷新方法
                table.reload('testReload', {
                    url: '${base}/kitchenhy/selectKitchenhy'
                    ,where: {} //设定异步数据接口的额外参数
                    //,height: 300
                });
            }
        });
    }


</script></body>
</html>